<head>
    <title>朴石茗素材管理</title>
    <base href="${root!}"/>
    <meta http-equiv="content-type" content="text/html" charset="UTF-8"/>
    <link href="public/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="public/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="public/themes/home.css" rel="stylesheet" type="text/css" />
    <script src="public/js/jquery.min.js" type="text/javascript"></script>
    <script src="public/js/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="public/js/Default.js" type="text/javascript"></script>
    <style type="text/css">
        .easyui-accordion ul
        {
            list-style-type: none;
            margin: 0px;
            padding: 10px;
        }
        .easyui-accordion ul li
        {
            padding: 0px;
        }
        .easyui-accordion ul li a
        {
            line-height: 24px;
        }
        .easyui-accordion ul li div
        {
            margin: 2px 0px;
            padding-left: 10px;
            padding-top: 2px;
        }
        .easyui-accordion ul li div.hover
        {
            border: 1px dashed #99BBE8;
            background: #E0ECFF;
            cursor: pointer;
        }
        .easyui-accordion ul li div.hover a
        {
            color: #416AA3;
        }
        .easyui-accordion ul li div.selected
        {
            border: 1px solid #99BBE8;
            background: #E0ECFF;
            cursor: default;
        }
        .easyui-accordion ul li div.selected a
        {
            color: #416AA3;
            font-weight: bold;
        }
    </style>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<noscript>
    <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
            width: 100%; background: white; text-align: center;">
        <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
    </div>
</noscript>
<div region="north" split="true" style="overflow: hidden; height: 40px; background: #D2E0F2 repeat-x center 50%;
         color: #fff;line-height: 30px;">
    <div style="margin-left:20px;float: left;font-size: 16px;color: #000000;font-weight: 900;">
        朴石茗数据支撑系统
    </div>
    <div style="float:right;">
        欢迎您：${user_name}&nbsp;
        <a href="javascript:;" class="easyui-linkbutton" data-options="plain:true" onclick="changpwd()">修改密码</a>
        &nbsp;<a href="admin/login/login_out" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-back'">退出</a>
    </div>
</div>
<div region="south" style="height: 20px; background: #D2E0F2;">
    <div style="text-align: center; font-weight: bold">
        powerby 广州朴石茗文化发展有限公司</div>
</div>
<div region="west" split="true" title="导航菜单" style="width: 180px;overflow:hidden;" iconCls="icon-menu">
    <div id="menu" class="easyui-accordion" fit="true" border="false">
        <#list menu as me>
            <div title="${me.name}" style="overflow:auto; padding: 10px;" iconCls="${me.module}">
                <!--<div title="网站设置">-->
                    <ul style="padding: 0px;">
                        <#list me.second_menu as sme>
                        <li>
                            <div class="menu_item">
                                <a target="mainFrame" id="${sme.id!}" style="text-decoration:none;color: #2e2e2e" ghref="${root!}${sme.url}">${sme.name}</a>
                            </div>
                        </li>
                        </#list>
                    </ul>
                <!--</div>-->
            </div>
        </#list>

        <!--<div title="关于" icon="icon-help">-->
            <!--<h4>-->
                <!--EntWebSite Ver 1.0</h4>-->
        <!--</div>-->
    </div>
</div>
<div region="center" id="mainPanle" style="background: #eee;overflow:hidden;">
    <div id="tabs" class="easyui-tabs" fit="true" border="false">
        <div title="首页" style="padding: 20px;" id="home">
            <h1>
                朴石茗数据支撑系统</h1>
        </div>
    </div>
<div id="pwddlg"></div>
<script type="text/javascript">
var changpwd = function(){
$("#pwddlg").dialog({
                title:"修改密码",
                iconCls: 'icon-edit',
                width: 700,
                height: 300,
                closed: false,
                cache: false,
                modal: true,
                href:"admin/pwd/index",
                onLoad:function() {
                    $.messager.progress('close');
                },
                buttons: [{
                    text: '取消',
                    iconCls:'icon-cancel',
                    handler: function () {
                        $('#pwdForm').form('clear');
                        $("#pwddlg").dialog("close");
                    }
                },{
                    text: '提交',
                    iconCls: 'icon-ok',
                    handler: function(){
                        $('#pwdForm').form('submit',{
                            url:"admin/pwd/change",
                            dataType:"json",
                            
                            success:function(data){
                                var data = eval('(' + data + ')');  // change the JSON string to javascript object

                                $.messager.alert("提示",data.msg);
                                if(data.success==1){
                                    $("#pwddlg").dialog("close");
                                }
                            }
                        });
                    }

                }]
            });
            }
</script>
</body>
